package com.zbb.online_exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zbbstart
 * @date 2021/2/22 - 22:46
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "权限对象", description = "封装了权限的各个属性后得到的一个实体对象")
public class Role implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "权限编号", example = "1")
    private Integer id;
    @ApiModelProperty(name = "name", value = "权限名", example = "ROLE_ADMIN")
    private String name;
    @ApiModelProperty(name = "descn", value = "权限描述", example = "管理员")
    private String descn;
}
